/**
 * article category
 * =======================================
 * list
 * edit
 * remove
 * view
 * statusList
 * changeStatus
 * changeSort
 * batchRemove
 */

import request from '@/utils/request'

// tree
export function tree(data) {
  return request({
    url: '/api/uni/article/category/tree',
    method: 'post',
    data
  })
}

// list
export function list(data) {
  return request({
    url: '/api/uni/article/category/list',
    method: 'post',
    data
  })
}

// edit
export function edit(data) {
  return request({
    url: '/api/uni/article/category/edit',
    method: 'post',
    data
  })
}

// remove
export function remove(data) {
  return request({
    url: '/api/uni/article/category/remove',
    method: 'post',
    data
  })
}

// view
export function view(data) {
  return request({
    url: '/api/uni/article/category/view',
    method: 'post',
    data
  })
}

// statusList
export function statusList(data) {
  return request({
    url: '/api/uni/article/category/status-list',
    method: 'post',
    data
  })
}

// changeStatus
export function changeStatus(data) {
  return request({
    url: '/api/uni/article/category/change-status',
    method: 'post',
    data
  })
}

// changeSort
export function changeSort(data) {
  return request({
    url: '/api/uni/article/category/change-sort',
    method: 'post',
    data
  })
}

// batchRemove
export function batchRemove(data) {
  return request({
    url: '/api/uni/article/category/batch-remove',
    method: 'post',
    data
  })
}
